<?php
class ImportCsvForm extends BaseForm{
    public function configure() {
        $this->setWidget('csv_file', new sfWidgetFormInputFile(array('label' => 'Fichier CSV')));
        $this->setValidator('csv_file', new sfValidatorFile(
                array(
                    'max_size' => 500000,
                    'mime_types' => array('text/csv','text/plain','text/comma-separated-values','text/x-c'),
                    'path' => sfConfig::get('sf_upload_dir') . '/tmp',
                    'required' => true
                    //'validated_file_class' => 'sfValidatedFileCustom'
	        )	 
	      ));
        $this->widgetSchema->setNameFormat('import[%s]');
    }
}
?>
